<div id="sidebar">
    <a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
    <ul>
        <li ><a href="<?php echo site_url(); ?>"><i class="icon icon-home"></i> <span>Dashboard</span></a></li>
        <li class="submenu">
            <a href="#"><i class="icon icon-th-list"></i> <span>Data Soal</span></a>
            <ul>
                <li><a href="<?php echo site_url('admin_home/soal'); ?>"><i class="icon icon-th"></i> Lihat Data Soal</a></li>
                <li><a href="<?php echo site_url('admin_home/tambah_jenis'); ?>"><i class="icon icon-plus"></i> Tambah Data Soal</a></li>
            </ul>
        </li>
        <li class="submenu">
            <a href="#"><i class="icon-folder-open icon-white"></i> <span>Data Siswa</span></a>
            <ul>
                <li><a href="<?php echo site_url('admin_siswa'); ?>"><i class="icon-tasks"></i> Lihat Data Siswa</a></li>
                <li><a href="<?php echo site_url('admin_siswa/tambah'); ?>"><i class="icon-plus-sign"></i> Tambah Data Siswa</a></li>
            </ul>
        </li>
        <li>
            <a href="<?php echo site_url('admin_home/help'); ?>"><i class="icon-question-sign"></i>Help</a>
        </li>
    </ul>
</div>
<!-- Sidebar Active End -->
<div id="content">
    <div id="content-header">
        <h1>Edit Data <?php echo $nama; ?></h1>
        <div class="btn-group">
        </div>
    </div>
    <div id="breadcrumb">
        <a href="<?php echo site_url(); ?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
        <a href="#" class="current"> Edit Data <?php echo $nama; ?></a>
    </div>    
    <!-- end of breadcumb --> 
    <div class="container-fluid">
        <br/>
        <?php if (validation_errors()) { ?>
            <div class="alert alert-error">
                <button type="button" class="close" data-dismiss="alert">x</button>
                <h4>Terjadi Kesalahan!</h4>
                <?php echo validation_errors(); ?>
            </div>
        <?php } ?>
        <?php if ($this->session->flashdata('result_pass')) { ?>
            <div class="alert alert-error">
                <button type="button" class="close" data-dismiss="alert">x</button>
                <h4>Terjadi Kesalahan!</h4>
                <?php echo $this->session->flashdata('result_pass'); ?>
            </div>
        <?php } ?>
        <?php if ($this->session->flashdata('result_pass_true')) { ?>
            <div class="alert alert-success">
                <button type="button" class="close" data-dismiss="alert">x</button>
                <h4>Sukses!</h4>
                <?php echo $this->session->flashdata('result_pass_true'); ?>
            </div>
        <?php } ?>
        <?php echo form_open('admin/simpan', 'class="form-horizontal"'); ?>
        <div class="control-group">
            <label class="control-label" for="nama">Nama</label>
            <div class="controls">
                <input type="text" style="width:300px;" name="nama" value="<?php echo $nama; ?>" placeholder="Nama">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="uname">Username</label>
            <div class="controls">
                <input type="text" style="width:300px;" name="uname" value="<?php echo $uname; ?>" placeholder="Username"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="oldpass">Password Lama</label>
            <div class="controls">
                <input type="password" style="width:300px;" name="oldpass" value="<?php echo $pass; ?>" placeholder="Password"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="newpass">Password Baru</label>
            <div class="controls">
                <input type="password" style="width:300px;" name="newpass" value="<?php echo $pass; ?>" placeholder="Password"/>
            </div>
        </div>
        <input type="hidden" name="id" value="<?php echo $id; ?>" />
        <a class="btn" href="<?php echo site_url('admin_home'); ?>">Back</a>
        <button class="btn btn-primary" type="submit" value="submit" name="submit">Save</button>
        <?php echo form_close(); ?>
    </div>
    <div id="push"></div>

